package com.ruoyi.project.data.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class ExamAllRecords extends BaseEntity {
    private int examId;
    private String examName;
    private double examAllMoney;
    private int examNum;

    public ExamAllRecords(int examId, String examName, double examAllMoney, int examNum) {
        this.examId = examId;
        this.examName = examName;
        this.examAllMoney = examAllMoney;
        this.examNum = examNum;
    }

    public ExamAllRecords() {
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public double getExamAllMoney() {
        return examAllMoney;
    }

    public void setExamAllMoney(double examAllMoney) {
        this.examAllMoney = examAllMoney;
    }

    public int getExamNum() {
        return examNum;
    }

    public void setExamNum(int examNum) {
        this.examNum = examNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ExamAllRecords)) return false;
        ExamAllRecords that = (ExamAllRecords) o;
        return examId == that.examId &&
                Double.compare(that.examAllMoney, examAllMoney) == 0 &&
                examNum == that.examNum &&
                Objects.equals(examName, that.examName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(examId, examName, examAllMoney, examNum);
    }

    @Override
    public String toString() {
        return "ExamAllRecords{" +
                "examId=" + examId +
                ", examName='" + examName + '\'' +
                ", examAllMoney=" + examAllMoney +
                ", examNum=" + examNum +
                '}';
    }
}
